Skip to content

feat: allow scalars to appear as the LHS arg in arithmetic operations on temporal values#6196

Merged
alamb merged 4 commits intoapache:mainfrom
kyle-mccarthy:issue/6155
May 4, 2023
Merged

feat: allow scalars to appear as the LHS arg in arithmetic operations on temporal values#6196
alamb merged 4 commits intoapache:mainfrom
kyle-mccarthy:issue/6155

Conversation

@kyle-mccarthy
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #6155

Rationale for this change

Currently, scalars cannot appear as the LHS arg in arithmetic operations on temporal values. This updates the relevant logic to accept scalars as the first argument.

What changes are included in this PR?

Updates the temporal arithmetic operations to accept scalars as the LHS arg.

Are these changes tested?

A test has been added for this new case.

Are there any user-facing changes?

No

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

arithmetic operations on timestamps fail when now() is used as the LHS argument

3 participants